﻿using MyK3CloudCore.IOC.Attributes;
using System;
using System.ComponentModel;

namespace WebDemo.Models
{
    [Description("销售订单")]
    public class SAL_SaleOrder
    {
        [ignore]
        public int FId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        [Description("销售订单编号")]
        public string FBillNo { get; set; }
        /// <summary>
        /// 客户简称
        /// </summary>
        [Description("客户简称")]
        public string FCUSTID__FShortName { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        [Description("客户名")]
        public string FCUSTID__FName { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        [Description("物料编码")]
        [Alias("FMaterialId.FNumber")]
        public string FMaterialId_FNumber { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [Description("产品名称")]
        public string FMaterialName { get; set; }
        [Description("规格型号")]
        public string FMaterialModel { get; set; }
        /// <summary>
        /// 销售数量
        /// </summary>
        [Description("数量")]
        public double FQty { get; set; }
        [Description("单据日期")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateTimeConvert))]
        public DateTime FDate { get; set; }
        [Description("要货日期")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateTimeConvert))]
        public DateTime FPlanDate { get; set; }
        [Description("已出库数量")]
        public double FStockOutQty { get; set; }
        [Description("剩余未出数量")]
        public double FRemainOutQty { get; set; }
    }
}
